<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/11/11
 * Time: 11:18
 * Project name: PHPTEST
 * File name: student.php
 * @package com\zrx\pro
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license https://github.com/zhangrxiang
 * @since 1.0.0
 */
namespace com\zrx\pro;

class Student implements  People
{
    var $name;
    var $age;

    /**
     * Student constructor.
     * @param $name
     * @param $age
     */
    public function __construct($name, $age)
    {
        $this->name = $name;
        $this->age = $age;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return mixed
     */
    public function getAge()
    {
        return $this->age;
    }

    /**
     * @param mixed $age
     */
    public function setAge($age)
    {
        $this->age = $age;
    }

    public function eating()
    {
        echo "I'm eating";
    }

    public function working()
    {
        echo "I'm working";
    }

    public function saying()
    {
        // TODO: Implement saying() method.
        echo "I'm working";
    }
}